 <?php 
$url = isset($_GET['url'])?$_GET['url']:'';
if(empty($url)){
	echo '<meta http-equiv="content-type" content="text/html;charset=utf-8">';
	echo '示例:http://proxy.imakesoft.net/index.php?url=http://www.qq.com<br/>';
	echo '-使用SAE_FetchUrl:http://proxy.imakesoft.net/fetchurl.php<br/>';
	echo '-使用SAE_PHPcurl:http://proxy.imakesoft.net/curl.php<br/>';
}else{
    $ch=curl_init();
    curl_setopt($ch,CURLOPT_URL,$url);
    curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
    $content=curl_exec($ch);
    if(curl_errno($ch)) echo curl_error($ch);
    else echo $content;
    curl_close($ch);
}
?>